package com.dm.learn.java.pattern.productor_consumer1;

/**
 * 
 * @ClassName: MainTest
 * @author Damon.Han
 * @Description: 测试生产者消费者模式
 * @date 2014-3-21 下午4:13:13
 * 
 */
public class MainTest {

	public static void main(String[] args) {
		ThreadManager tm = new ThreadManager();
		Productor tp = new Productor(tm);
		Consumer tc = new Consumer(tm);
		Thread t1 = new Thread(tp);
		Thread t2 = new Thread(tc);
		t1.start();
		t2.start();
	}

}
